package com.xiaoma.tpo.dao;

import org.springframework.stereotype.Repository;

import com.xiaoma.tpo.baseDao.BaseDaoImpl;
import com.xiaoma.tpo.domain.PayOrder;

@Repository
public class PayOrderDao extends BaseDaoImpl<PayOrder>{

    public void updateByUUID8(String uuid8) {
        jdbcTemplate.update("update pay_order set status = 1, updated_at = now() where uuid8 = ?",uuid8);//支付成功
    }
    
    public void finished(String orderNum) {
        jdbcTemplate.update("update pay_order set status = 3, updated_at = now() where order_num = ?",orderNum);//完成订单
    }
}
